package org.zhou.demo1;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class Client {
    public static void main(String[] args) {
        List<LogModel> logModels = new ArrayList<>(Arrays.asList(
                new LogModel("001", "zhouweixin", "2020-08-02 16:46:20", "这是文件的第一个测试日志"),
                new LogModel("002", "zhouweixin", "2020-08-02 16:50:20", "这是文件的第二个测试日志")));

        LogFileOperateApi logFileOperateApi = new LogFileOperateImpl(null);

        // 写日志
        logFileOperateApi.writeLogFile(logModels);

        // 读日志
        List<LogModel> readLogModels = logFileOperateApi.readLogFile();
        System.out.println(readLogModels);
    }
}
